﻿using System;
using UnityEngine;
using UnityEngine.Networking;

// Token: 0x02000291 RID: 657
[RequireComponent(typeof(Rigidbody))]
[RequireComponent(typeof(CapsuleCollider))]
public class MicroControl : Player
{
	// Token: 0x06000E8C RID: 3724 RVA: 0x000704E4 File Offset: 0x0006E6E4
	private void Initialize()
	{
		this.anim = base.GetComponent<Animator>();
		AnimationManager.SetAnimatorController(this.anim, IOManager.Instance.playerAnimatorController);
		base.GetComponent<ResizeCharacter>().enabled = true;
	}

	// Token: 0x06000E8D RID: 3725 RVA: 0x00070513 File Offset: 0x0006E713
	protected override void OnDestroy()
	{
		base.gameObject.name = this.oldName;
		AnimationManager.SetAnimatorController(this.anim, IOManager.Instance.gtsAnimatorController);
		base.OnDestroy();
	}

	// Token: 0x06000E8E RID: 3726 RVA: 0x00070544 File Offset: 0x0006E744
	protected override void Awake()
	{
		this.oldName = base.gameObject.name;
		base.Awake();
		this.ai.DisableAI();
		this.Initialize();
		GameController.Instance.SetPlayerInstance(this);
		PlayerCamera.instance.SetCameraTarget(base.gameObject.transform);
	}

	// Token: 0x06000E8F RID: 3727 RVA: 0x00002973 File Offset: 0x00000B73
	private void UNetVersion()
	{
	}

	// Token: 0x06000E90 RID: 3728 RVA: 0x0007059C File Offset: 0x0006E79C
	public override bool OnSerialize(NetworkWriter writer, bool forceAll)
	{
		bool flag = base.OnSerialize(writer, forceAll);
		bool flag2;
		return flag2 || flag;
	}

	// Token: 0x06000E91 RID: 3729 RVA: 0x000705B5 File Offset: 0x0006E7B5
	public override void OnDeserialize(NetworkReader reader, bool initialState)
	{
		base.OnDeserialize(reader, initialState);
	}

	// Token: 0x040013AA RID: 5034
	private string oldName;
}
